package day5.string;

/**
 * @author joker
 * @date 2022/4/15 0015 - 17:17
 */
public class StringTest1 {
    /**
     * 一道面试题
     * @author shkstart
     * @create 2019 上午 11:32
     */


        String str = new String("good");
        char[] ch = { 't', 'e', 's', 't' };

        public void change(String str, char ch[]) {
            str = "test ok";
            ch[0] = 'b';
        }
        public static void main(String[] args) {
            StringTest1 ex = new StringTest1();
            ex.change(ex.str, ex.ch);
            System.out.println(ex.str);//good
            System.out.println(ex.ch);//best
        }

}
